﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GoPlay.Models
{
    public interface IEntity
    {
        int UserId { get; }
        int Id { get; }
    }

    public interface IRepository<T> where T : class
    {
        T GetByID(int id);
        T GetByID(int id, string[] childCollectionNames);
        List<T> GetAllByUserId(int userId);
        void Insert(T entity);
        void Delete(T entity);
        void Update(T entity);
        void SaveChanges();
    }
       
}